home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / procssng / ccs / ccs-11tl.lha / lbl / xview / genial / include / zoom.h < prev   
Encoding:
C/C++ Source or Header  |  1992-07-14  |  755 b   |  27 lines

  1. /*
  2.  * zoom.h -- definitions for zoom functions in genial
  3.  *
  4.  */
  5.  
  6. #include "zoom_ui.h"
  7.  
  8. /* zcontext is the context of one zoom operation */
  9. struct zcontext {
  10.   zoom_zmwin_objects *display; /* pointer to the GUIDE-generated structure */
  11.   Xv_Window paintwin; /* paintwin associated with this zoom window */
  12.   XID zxid;            /* XID for zoom */
  13.  
  14.   XImage *zim; /* XImage of the zoom */
  15.   XPoint p1, p2; /* the 2 points which define the rectangle for this zoom*/
  16.   int zmfac; /* zoom scaling factor */
  17.   int can_width, can_height;  /* size of zoom window canvas */
  18. };
  19.  
  20. extern struct zcontext *newzoom(), *zoom_by_win(), *zoom_by_lid();
  21.  
  22. /* direction the user can be scroll in the zoom window */
  23. #define LEFT 1
  24. #define RIGHT 2
  25. #define UP 3
  26. #define DOWN 4
  27.